package com.xiantm.study.thread.Immutable;

public class PrinterThread extends Thread{
    private Person person;

    public PrinterThread(Person person) {
        this.person = person;
    }

    @Override
    public void run() {
        while (true){
            System.out.println(person);
        }
    }
}
